'use client'
import React from 'react';
import { AntdRegistry } from '@ant-design/nextjs-registry';
import zhCN from "antd/locale/zh_CN";
import "dayjs/locale/zh-cn";
import '@ant-design/v5-patch-for-react-19';
import dayjs from "dayjs";
import { ConfigProvider } from 'antd';
dayjs.locale("zh-cn");
const RootLayout = ({ children }: React.PropsWithChildren) => {
    const locale = zhCN;
    return <ConfigProvider locale={locale}>
        <AntdRegistry>{children}</AntdRegistry>
    </ConfigProvider>

}

export default RootLayout;